class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.column :name, :string,  :null => false, :limit => 16
      t.column :hashed_password,  :string,  :null => false,:limit=>64
      t.column :nickname,  :string,  :null => false,:limit => 32
      t.column :email,  :string,  :null => false,:limit=>32
      t.column :salt,:string,:null=>false,:limit => 64
      t.timestamps
    end
  end

  def self.down
    drop_table :users
  end
end
